package cn.amossun.starter.mybatis.data.security.config;

import cn.amossun.starter.common.constant.Constant;
import cn.amossun.starter.mybatis.data.security.properties.MybatisPlusProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ConditionalOnProperty(
        prefix = Constant.AMOS_SUN_DATA_SECURITY,
        name = "mybatisPlus.enabled",
        havingValue = "true"
)
@ConfigurationProperties(prefix = Constant.AMOS_SUN_DATA_SECURITY)
public class MybatisPlusDataSecurityConfig {

    private MybatisPlusProperties mybatisPlus;

}
